﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["error"] != null)
        {
            if (Request.QueryString["error"].Equals("1")) 
                errorInfo.InnerText = "error:用户名或密码错误";
            else if(Request.QueryString["error"].Equals("0"))
                errorInfo.InnerText = "error:用户不存在";
            else if (Request.QueryString["error"].Equals("2"))
                errorInfo.InnerText = "error:用户权限不够，请重新登录";
            errorInfo.Style.Clear();
            errorInfo.Style.Value= "text-align: center;color:red";
        }
        
    }
}